package com.whmnx.my.ui.adapter;

import android.view.ViewGroup;

import androidx.databinding.ViewDataBinding;

import com.whmnx.my.ui.viewmodel.ViewPagerItemInsideViewModel;
import com.whmnx.my.ui.viewmodel.ViewPagerItemJiaoYiViewModel;

import me.tatarka.bindingcollectionadapter2.BindingViewPagerAdapter;

/**
 *
 * @author goldze
 * @date 2018/6/21
 */

public class ViewPagerJiaoYiBindingAdapter extends BindingViewPagerAdapter<ViewPagerItemJiaoYiViewModel> {
    @Override
    public void onBindBinding(final ViewDataBinding binding, int variableId, int layoutRes, int position, ViewPagerItemJiaoYiViewModel item) {
        super.onBindBinding(binding, variableId, layoutRes, position, item);
        //这里可以强转成ViewPagerItemViewModel对应的ViewDataBinding，
      // ItemViewpagerBinding _binding = (ItemViewpagerBinding) binding;
    }

    @Override
    public void destroyItem(ViewGroup container, int position, Object object) {
        super.destroyItem(container, position, object);
    }
}
